import { createRouter, createWebHistory } from "vue-router"

const routes = [
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/',
    component: () => import('~/layouts/AppLayout.vue'),
    children: [
      {
        path: '/home',
        name: 'Home',
        component: () => import('~/page/home-page/HomePage.vue')
      },
    ]
  }
]

const route = createRouter({
  history: createWebHistory(),
  routes
})

export default route